<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>管理平台</title>
	<link rel="stylesheet" type="text/css" href="/css/style.css">
  </head>

  <body>
    <h1>Android服务支撑平台欢迎你, ${user}</h1>
    <p></p>
    <div id="menu">
    	<jsp:include page="menu.jsp"></jsp:include>
    </div>
    <div id="content">
    	<h3>系统配置</h3>
    	<form action="/common">
			<p><b>编号: ${config.id}</b>
			
			<p><b>邮件主机(smtp.163.com)</b><br>
			<input type="text" name="mailHost" style="width:600px;border:1px solid #369;" value="${config.mailHost}"><br>
			<p><b>邮件认证名</b><br>
			<input type="text" name="mailUsername" style="width:600px;border:1px solid #369;" value="${config.mailUsername}"><br>
			<p><b>邮箱认证密码</b><br>
			<input type="text" name="mailPassword" style="width:600px;border:1px solid #369;" value="${config.mailPassword}"><br>
			<p><b>发件人</b><br>
			<input type="text" name="mailFrom" style="width:600px;border:1px solid #369;" value="${config.mailFrom}"><br>
			<p><b>收件人</b><br>
			<input type="text" name="mailTo" style="width:600px;border:1px solid #369;" value="${config.mailTo}"><br>
			<p><b>是否把反馈信息发邮件</b><br>
			<select name="feedbackByEmail" style="width:200px;border:1px solid #369;">
				<option value="true" ${config.feedbackByEmail ? 'selected="selected"' : ''}>必须的</option>
				<option value="false" ${!config.feedbackByEmail ? 'selected="selected"' : ''}>还是算了吧</option>
			</select><br>
			<input type="hidden" name="id" value="${config.id}">
			<p><p><p><p>
			<input type="hidden" name="method" value="modifyConfig">
			<input type="submit" value="  提   交   " style="float:right;">
		</form>
    </div>
  </body>
</html>